/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.io.Serializable;

import lib.DOMNode;


/**
 *
 * @author HOME
 */
public class Client implements Serializable {
    
    private String serial;
    private String terminal;
    private String software;
    private String timezone;
    
    public Client(String serial, String terminal, String software, String timezone) {
        this.serial = serial;
        this.terminal = terminal;
        this.software = software;
        this.timezone = timezone;
    }
    
    public Client() {
    }
    
    public String getSerial() {
        return serial;
    }
    
    public void setSerial(String serial) {
        this.serial = serial;
    }
    
    public String getSoftware() {
        return software;
    }
    
    public void setSoftware(String software) {
        this.software = software;
    }
    
    public String getTerminal() {
        return terminal;
    }
    
    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }
    
    public String getTimezone() {
        return timezone;
    }
    
    public void setTimezone(String timezone) {
        this.timezone = timezone;
    }
    
    public DOMNode toXML() {
      
        DOMNode client = new DOMNode("client");        
        client.addAttribute("terminal", terminal).addAttribute("software", software).addAttribute("timezone", timezone);
         //addAttribute("serial", serial).
        return client;
    }

}
